package com.hontech.pastacooking.utils

import java.text.SimpleDateFormat
import java.util.*

private val format = SimpleDateFormat("yyyy-MM-dd HH:mm:ss")

fun currentTime(): String {
    val dt = Calendar.getInstance()
    return format.format(dt.time)
}

fun currentTimestamp(): Long {
    return System.currentTimeMillis() / 1000
}
